package chances.epg.api.controller.model;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import chances.epg.entity.content.Episode;

public class EpisodeInfo {
	private Episode episode;
	
	public EpisodeInfo(Episode episode){
		this.episode = episode;
	}
	
	public String getContentCode() {
		return this.episode.getContentCode();
	}
	
	public String getSeriesCode() {
		return this.episode.getSeriesCode();
	}
	
	public int getEpisodeIndex() {
		return this.episode.getEpisodeIndex();
	}
	
	public String getContentTitle() {
		return this.episode.getContentTitle();
	}
	
	@JsonSerialize(using = DateSerializer.class)
	public Date getIssueDate() {
		return this.episode.getIssueDate();
	}
}
